package com.example.designpattenexample.strategy;

//环境类
public class Context {
    private Strategy strategy = null;
    public Context (Strategy strategy){
        this.strategy = strategy;
    }

    //调用策略方法
    public void contextInterface(){
        this.strategy.strategyInterface();
    }

}
